package com.estate.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.estate.common.core.domain.entity.TransactionData;
import com.estate.system.domain.vo.AgentPropertyDistributionResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Agent 数据层
 *
 * @author simon
 */
public interface TransactionDataMapper extends BaseMapper<TransactionData> {

    Long getTransaction(@Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("emailList") List<String> emailList);

    List<Map<String, Object>> generateTransactionTypeData(@Param("paramData") Map<String, Object> paramData, @Param("emailList") List<String> emailList);

    List<AgentPropertyDistributionResult> createTransactionType(@Param("paramData") Map<String, Object> paramData, @Param("emailList") List<String> emailList);

    List<Map<String, Object>> generatePropertyTypeData(@Param("paramData") Map<String, Object> paramData, @Param("emailList") List<String> emailList);

    List<Map<String, Object>> generatePriceRangeData(@Param("paramData") Map<String, Object> paramData, @Param("emailList") List<String> emailList);
}
